﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="PagingCtrl.ascx.cs" Inherits="UserControl_PagingCtrl" %>
<table width="98%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100%">
      <asp:LinkButton ID="btnFirst" runat="server" Text="第一页" OnClick="btn_Click" CssClass="pp" />
      <asp:LinkButton ID="btnPrevious" runat="server" OnClick="btn_Click" Text="上一页" />
      <asp:DataList ID="datPageNumber" runat="server" RepeatDirection="Horizontal" RepeatLayout="Flow">
        <ItemTemplate>
          <asp:LinkButton ID="btnPageNumber" runat="server" Text='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"PageCount")) %>' CommandName='<%# Convert.ToInt32(DataBinder.Eval(Container.DataItem,"PageCount")) %>' OnCommand="btn_Click" />
        </ItemTemplate>
      </asp:DataList>
      <asp:LinkButton ID="btnNext" runat="server" Text="下一页" OnClick="btn_Click" />
      <asp:LinkButton ID="btnLast" runat="server" OnClick="btn_Click" Text="最末页" />
      &nbsp;&nbsp;
      <a class="p_pages">&nbsp;
        <asp:Label ID="labNoncePage" runat="server" />&nbsp;&nbsp;
        <asp:Label ID="labPageAmountt" runat="server" />
      </a>
      &nbsp;&nbsp;
      <a class="p_pages" style="padding:0;" title="请输入页数">
          <input class="p_input" type="text" id="txtPageCount" runat="server" style="width: 50px" />
      </a>
      <asp:LinkButton ID="btnOK" CssClass="pp" runat="server" Text="GO" OnClick="btnOK_Click" />
    </td>
  </tr>
</table>
